convert string to byte array python